import request from '@/utils/request'

// 查询商品监控缓存列表
export function selectFirstLevelSaleTrend(query) {
  return request({
    url: '/sale/BiMonitoringMiddleDwd/selectFirstLevelSaleTrend',
    method: 'get',
    params: query
  })
}
// 查询商品监控缓存列表
export function synData(query) {
  return request({
    url: '/sale/BiMonitoringMiddleDwd/synData',
    method: 'get',
    params: query
  })
}
// 查询商品监控缓存列表
export function selectFirstLevelSaleRatio(query) {
  return request({
    url: '/sale/BiMonitoringMiddleDwd/selectFirstLevelSaleRatio',
    method: 'get',
    params: query
  })
}
// 查询商品监控缓存列表
export function listBiMonitoringMiddleDwd(query) {
  return request({
    url: '/sale/BiMonitoringMiddleDwd/list',
    method: 'get',
    params: query
  })
}
// 查询商品监控缓存详细
export function getBiMonitoringMiddleDwd(id) {
  return request({
    url: '/sale/BiMonitoringMiddleDwd/' + id,
    method: 'get'
  })
}

// 新增商品监控缓存
export function addBiMonitoringMiddleDwd(data) {
  return request({
    url: '/sale/BiMonitoringMiddleDwd',
    method: 'post',
    data: data
  })
}

// 修改商品监控缓存
export function updateBiMonitoringMiddleDwd(data) {
  return request({
    url: '/sale/BiMonitoringMiddleDwd',
    method: 'put',
    data: data
  })
}

// 删除商品监控缓存
export function delBiMonitoringMiddleDwd(id) {
  return request({
    url: '/sale/BiMonitoringMiddleDwd/' + id,
    method: 'delete'
  })
}
